import { createApp } from 'vue'

/**引入vant组件库 */
import Vant from 'vant'
import 'vant/lib/index.css';

/**引入vue-router */
import router from "./router/index.js";

/**引入less */
import './style/index.less'

/**引入全局组件 */
import Layout from "./views/common/layout.vue";


import App from './views/index.vue'
import { Pinia } from './store/index.js';

const app = createApp(App)

/**注册vant组件 */
app.use(Vant)


/**注册路由 */
app.use(router)

/**注册全局组件 */
app.component('Layout', Layout)

/**注册状态管理器pinia */
app.use(Pinia)

app.mount('#root')
